/*
 * Plan.java
 *
 * Created on May 21, 2007, 8:43 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package model;

/**
 *
 * @author Alirio
 */
public class Plan {
  private String product;
  private double planned;
  private double done;
  
  
  /** Creates a new instance of Plan */
  public Plan() {
  }

  public double getPercent() {
    if (planned != 0 ) {
      return (done/planned)*100;
    } else {
      return 0;
    }
  }
  
  public String getProduct() {
    return product;
  }

  public void setProduct(String product) {
    this.product = product;
  }

  public double getPlanned() {
    return planned;
  }

  public void setPlanned(double planned) {
    this.planned = planned;
  }

  public double getDone() {
    return done;
  }

  public void setDone(double done) {
    this.done = done;
  }
  
}
